package com.oo.abstractAndInterface_6.employee;

/**
 * Blackcoat--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-17 15:48
 **/
public class Blackcoat extends Employee {

    private int popularity;

    public Blackcoat(String name, int age, String sex, int id, int popularity) {
        super(name, age, sex, id);
        this.popularity = popularity;
    }

    @Override
    public void sayHello() {
        System.out.println("Hello everyone, I am" + getName() + "，" + getAge() + "old\nMy job number" + getId() + "，I have a sentiment index of " + getPopularity());
    }

    public void getTask(String msg) {
        System.out.println("I received a task "+msg+",must make sure they do");
    }

    public int getPopularity() {
        return popularity;
    }

    public void setPopularity(int popularity) {
        this.popularity = popularity;
    }
}
